Image compression with alpha channel data

ABSTRACT

Techniques for a compressed image with alpha channel data are described. Encoded alpha channel data from a compressed image representation may be extracted. A common type pixel run characteristic may be determined for at least one common type pixel run represented in the encoded alpha channel data. A common alpha channel value is applied, based on the common type pixel run characteristic, to pixels in a decompressed image representation correlated to the at least one common type pixel run. Pixels in the decompressed image representation correlating to at least one lookup type pixel run represented in the encoded alpha channel data may be processed. The processing may include a determination of an alpha channel value based on pixel data, specific to a pixel correlated to the lookup type pixel run, in the encoded alpha channel data and an application of the alpha channel value to the pixel.

CLAIM OF PRIORITY

This patent application claims the benefit of priority, under 35 U.S.C.Section 119(e), to U.S. Provisional Patent Application Ser. No.61/554,158, titled “IMAGE COMPRESSION WITH ALPHA CHANNEL,” filed on Nov.1, 2011, which is hereby incorporated by reference herein in itsentirety.

BACKGROUND

Computer based image representations (image representations) may be usedin a variety of computer applications, including illustrations (e.g.,background, characters, symbols, etc.) to enhance a user's experiencewhen using the computer applications. Image representations generallycontain pixel display characteristics—such as red, green, blue, andalpha channel values—that may be combined to render the pixel on, forexample, a computer screen or printer. Alpha channel values generallyindicate a transparency degree for a pixel (e.g., a percentage oftransparency from zero (opaque) to one hundred (invisible)). Includingpixel transparency information (e.g., via an alpha channel) may permitforeground elements to implicitly include background elements (e.g.,viewing the background through a window pane), increasing efficiency increating visual elements as well as the user's visual experience.

BRIEF DESCRIPTION OF THE DRAWINGS

Various systems, techniques, and data structures for a compressed imagewith alpha channel data are described. The present disclosure isillustrated by way of example, and not limitation, in the figures of theaccompanying drawings, in which like reference numerals indicate similarelements unless otherwise indicated.

FIG. 1 illustrates a block diagram of an example of a system to createand use a compressed image with alpha channel data, according to anembodiment.

FIG. 2 illustrates an example of a decompressed image representation ofalpha channel data, according to an embodiment.

FIG. 3 illustrates an example of encoded alpha channel data, accordingto an embodiment.

FIG. 4 illustrates a flowchart of an example of a method to create adecompressed image representation from a compressed imagerepresentation, according to one embodiment.

FIG. 5 illustrates a flowchart of an example of a method to create acompressed image representation from an original image representation,according to an embodiment.

FIG. 6 illustrates an example of a network environment, in which anembodiment may operate.

FIG. 7 illustrates an example of a computing system architecture, whichmay be used to implement a server or a client system, in which anembodiment may operate.

DESCRIPTION OF EXAMPLE EMBODIMENTS

As previously stated, image representations may be used in a variety ofcomputer applications to construct or supplement a user's visualexperience with the computer application. When the computer applicationis served from a server machine (e.g., in a client-server architecture)to a client machine over a network (e.g., in a web-based game), theimage representations used by the computer application are transmittedover the network. Detailed image representations (e.g., high-resolutionimages) may consume a large amount of network bandwidth to transmit. Insome games, the loading time (e.g., time between an initial user requestto play the game and a point when the user may interact with the game)may be adversely affected when a large number of detailed computerimages are used by the application. However, simply reducing the detailof the image representations (e.g., by lowering the resolution) mayadversely affect the user's visual experience.

An example image compression method may provide a compressed image withalpha channel data. The compressed image may be produced by splittingcolor data (e.g., red, green, and blue channels) from the alpha channelof an original image representation. Pixel runs (e.g., a set ofcontiguous pixels) from the original image representation may berepresented in encoded alpha channel data of a compressed imagerepresentation.

Pixel runs may be processed. Pixel run representations may include pixelrun characteristic data. Common type pixel runs may be pixel runs inwhich members have a common alpha channel value. In an example, thecommon alpha channel value is from a set of common alpha channel valueswith fewer members than the alpha channel values represented or possiblein the original image representation. The common type alpha channelvalue may be represented by, or in, common type pixel run characteristicdata.

Lookup type pixel runs may represent pixel runs whose member pixels haveeither varied alpha channel values (e.g., at least two pixels havedifferent alpha channel values) or an alpha channel value that is not inthe set of common alpha channel values. Lookup type pixel runcharacteristic data may include an indication that the pixel run is alookup type pixel run. A lookup type pixel run may indicate thatindividual pixel alpha channel values will be looked-up (e.g.,resolved), for example, from a palette. Alpha channel values, orrepresentations thereof, may be encoded into pixel data in the encodedalpha channel data, for each pixel in the lookup type pixel run.

In an example, at least one of the common alpha channel value or thealpha channel value may be quantized (e.g., reduced) from the respectivealpha channel values in the original image representation. In anexample, the palette may include a subset of the original imagerepresentation's possible alpha channel values (e.g., all alpha channelvalues that may be represented by the original image representation). Inan example, palette may include fewer entries than the alpha channelvalues used in the original image representation. In an example, theencoded alpha channel data, as a whole, may be compressed (e.g., using ageneral purpose compression scheme such as DEFLATE). The color data maybe encoded separately from the alpha channel data, e.g. by usingexisting compression schemes, such as that employed in the JointPhotographic Experts Group (JPEG) format, and may be included in thecompressed image representation.

Decompressing the compressed image representation may include extractingthe encoded alpha channel data from the compressed image representation.Pixel runs may be processed. For common type pixel runs, a common typepixel run characteristic may be determined and a common alpha channelvalue, correlated to the common type pixel run characteristic, may beapplied to pixels in the decompressed image representation. When alookup type pixel run is encountered, pixel data, correlated to thelookup type pixel run, may be used to apply alpha channel values to thepixels in the decompressed image representation correlated to the lookuptype pixel run. In an example, the pixel data includes a palette entryindex to resolve the alpha channel value with respect to a pixel. In anexample, the encoded alpha channel data is decompressed (e.g., usingINFLATE) prior to extraction of the encoded alpha channel data from thecompressed image representation. In an example, encoded color data, inthe compressed image representation, may be decoded and applied to thedecompressed image representation.

The described compressed image representation may take advantage ofexisting non-alpha channel capable image compression schemes whileefficiently including alpha channel data. The alpha channel data maytake advantage of large contiguous sets of pixels in the original imagerepresentation with the same alpha channel values (e.g., runs oftransparent or opaque pixels) using pixel run representations and pixelrun characteristic data. When individual pixel values are encoded, dataefficiency may be achieved via quantization or indexing, such as with apalette. Thus, efficient image representation with alpha channel valuesis achieved.

FIG. 1 illustrates a block diagram of an example of a system 100 tocreate and use a compressed image with alpha channel data. The system100 may include an encoding system and a decoding system, each of whichmay be separated and exist (e.g., operate) independently from eachother. However, for clarity, these two systems are here presentedtogether.

Encoding

The system 100 may include an encoding module 110. The encoding module110 may be configured to generate a representation of a common typepixel run in an encoded alpha channel data 135 of a compressed imagerepresentation 120 from a set of contiguous common alpha channel valuepixels in an original image representation 105. In an example, themembers of the set of common contiguous alpha channel value pixels mayshare a common alpha channel value from a set of common alpha channelvalues. In an example, the set of common alpha channel values may havefewer members than the number of possible original alpha channel valuesfrom the original image representation 105. Thus, in this example, notall contiguous pixel runs sharing the same alpha channel value arerepresented by a common type pixel run. In an example, the set of commonalpha channel values may consist of only opaque and transparent values,so that only runs of opaque or transparent pixels may be represented bya common type pixel run. The representation of the common type pixel runmay include a common type pixel run characteristic correlating to thecommon alpha channel value. Individual pixel alpha channel data is notseparately encoded in the encoded alpha channel data 135.

The encoding module 110 may be configured to generate a representationof a lookup type pixel run in the encoded alpha channel data 135 from aset of contiguous lookup alpha channel value pixels in the originalimage representation 105. In a lookup type pixel run, at least onemember of the set of contiguous lookup alpha channel value pixels mayeither have an alpha channel value that is different than another memberof the set (e.g., not all members of the set have the same alpha channelvalue) or even if all of the members have the same alpha channel value,the alpha channel value is not in the set of common alpha channelvalues. The encoding module 110 may be configured to represent theindividual alpha channel data of the lookup type run pixels separatelyin encoded alpha channel data 135.

In an example, the length (e.g., stride) of a pixel run represented inthe encoded alpha channel data 135 may be uniform (e.g., global) forevery pixel run represented in the encoded alpha channel data 135including the common type pixel runs and the lookup type pixel runs. Inan example, the encoding module 110 may be configured to select thelength from a plurality of lengths. In an example, the plurality oflengths may be 2², 2³, 2⁴, or 2⁵ pixels. In an example, the encodingmodule 110 may be configured to analyze the original imagerepresentation 105 to determine the length, for example, based on agreater degree of data reduction between the original imagerepresentation 105 and the compressed image representation 120. Forexample, the encoding module 110 may be configured to record the lengthof the pixel run in metadata of the encoded alpha channel data 135. Inan example, the encoding module 110 may be configured to select variablelengths variance in length between pixel runs) for each pixel runrepresented in encoded alpha channel data 135. The variable nm lengthsmay be recorded in respective pixel run characteristics, in metadata ofthe encoded alpha channel data 135, or elsewhere in the encoded alphachannel data 135 such that an individual pixel run's length may becorrelated to the pixel run.

To encode the individual pixel data for a lookup type pixel run'sassociated pixels, the encoding module 110 may be configured togenerate, for each pixel in the set of lookup alpha channel value pixeldata in the encoded alpha channel data 135. The pixel data may includean alpha channel value representation of an alpha channel valuecorrelating to the pixel.

In an example, the encoding module 110 may be configured to quantize thecommon alpha channel value to produce the common type pixel runcharacteristic. In an example, the encoding module 110 may be configuredto quantize the alpha channel value to produce the alpha channel valuerepresentation. Quantization, as used herein, is the translation of oneset of values (e.g., all possible alpha channel values in the originalimage representation 105) to a smaller set of values. For example, ifthe original image representation 105 could represent 2⁸ (256) alphachannel values, the quantized set could represent 2⁴ (16) alpha channelvalues. A variety of techniques may be used to perform the translation,including an analysis of the original image representation 105 todetermine significant alpha channel values, simple rounding, etc. In anexample, the alpha channel value representation may be an index to apalette in the encoded alpha channel data 135, where the palette maycontain the quantized alpha channel values.

In an example, the encoding module 110 may be configured to generate thepalette. Generating the palette may include mapping original alphachannel values from the original image representation 105 to paletteentries via quantization). The number of palette entries may be smallerthan the number of possible original alpha channel values. For example,if the original image representation 105 could support 256 alpha channelvalues, but only 80 alpha channel values were used in the original imagerepresentation 105, the palette could include 80 entries. In an example,the number of palette entries is fewer than a number of original alphachannel values, the number of original alpha channel values being a setof unique alpha channel values of the pixels of the original imagerepresentation 105. In this example, referencing the previous example,the number of palette entries is fewer than 80, such that a plurality oforiginally used alpha channel values are mapped to a single paletteentry.

In an example, the encoding module 110 may be configured to separatecolor data from the original image representation 105 from alpha channeldata in the original image representation 105. The encoding module 110may also be configured to generate encoded color data 130 in thecompressed image representation 120. In an example, the encoding module110 may encode the color data to create encoded color data 130. In anexample, the encoding module 110 may enlist an external entity, such asan application environment, or operating system service, to encode thecolor data. In an example, the encoded color data 130 may be in a JPEGformat (e.g., encoded into a PEG format).

In an example, the encoding module 110 may include, or may becommunicatively coupled to, a compression module 115. The compressionmodule 115 may configured to compress encoded alpha channel data 135 tocreate compressed encoded alpha channel data 140.

In an example, the encoding module 110 may be configured to create,update, or otherwise modify compressed image representation metadata125. The compressed image representation metadata 125 may include anyinformation about the compressed image representation 120, including aheader (e.g., a string indicating the file type), image width (e.g., inpixels, inches, or other metric), image height, color data size (e.g.,the size in bits, bytes, or other metric of the color data), and alphadata size. In an example, the header, width, height, color data size,and alpha data size are each represented with four bytes.

Decoding

The decoding module 145 may be configured to decode the compressed imagerepresentation 120 to produce the decompressed image representation 160.The decoding module 145 may be configured to extract encoded alphachannel data 135 from a compressed image representation 120. In anexample, the decoding module 145 may include, or be communicativelycoupled to, a decompression module 150. The decompression module 150 maybe configured to decompress (e.g., using INFLATE) compressed encodedalpha channel data 140 in the compressed image representation 120.

The decoding module 145 may be configured to determine, for at least onecommon type pixel run represented in the encoded alpha channel data 135,a common type pixel run characteristic. The decoding module 145 may beconfigured to apply, based the common type pixel run characteristic, acommon alpha channel value to pixels in a decompressed imagerepresentation 160 correlated to a common type pixel run. For example,given a first pixel run of eight pixels and a common type pixel runcharacteristic correlated to transparent (e.g., 100% transparency), thefirst eight pixels in the decompressed image representation 160 will beassigned an alpha channel value of transparent. As with encoding,individual pixel data is not used when processing a common type pixelrun represented in the encoded alpha channel data 135.

For lookup type pixel runs represented in the encoded alpha channel data135, the decoding module 145 may be configured to process pixels in thedecompressed image representation 160 correlated to a lookup type pixelrun represented in the encoded alpha channel data 135. In an example,the decoding module 145 may be configured to perform this process (e.g.,processing the pixels) by, for each pixel in the decompressed imagerepresentation 160 correlated to the at least one lookup type pixel run,determine an alpha channel value based on pixel data, specific to thepixel, in the encoded alpha channel data 135, and apply the alphachannel value to the pixel. In an example, the decoding module 145 canbe configured to determine the alpha channel value by reference to apalette with the pixel data (e.g., the pixel data includes an index toan entry of the palette). In an example, the palette may be in theencoded alpha channel data 135.

In an example, a pixel run length is uniform (e.g., the same) for everypixel run represented in the encoded alpha channel data 135, such ascommon type pixel runs and the lookup type pixel runs. In such a case,an image may be divided into a plurality or runs or subsets of uniformlength of size, and each run may be assessed to determine whether it isa common type pixel run or whether it is a lookup type pixel run. In anexample, the decoding module 145 may be configured to extract the lengthof the pixel run from metadata in the encoded alpha channel data 135. Inan example, the pixel runs may be variable, as described above. In thisexample, the decoding module 145 may be configured to extract individualpixel run lengths from the metadata of the encoded alpha channel data135, pixel run characteristic data, or any other data where the lengthmay be correlated to the particular pixel run.

In an example, the decoding module 145 may be configured to extractencoded color data 130 from the compressed image representation 120. Theencoded color data 130 may be separate from the encoded alpha channeldata 135 in the compressed image representation 120. In an example,decoding module 145 may be configured to apply (e.g., decode) theextracted color data to the decompressed image representation 160. In anexample, the encoded color data 130 is in a PEG format. In an example,the decoding module 145 may be configured to apply the color data to thedecompressed image representation 160 by, for example, passing the colordata to an application environment facility 155 (e.g., an Adobe Flashclient-side execution environment) to decode and populate colorinformation of the decompressed image representation 160.

FIG. 2 illustrates an example of a decompressed image representation 160of alpha channel data. Each square shown in FIG. 2 represents a pixel inan example decompressed image representation 160. White pixels are fullytransparent, black pixels are opaque (e.g., not transparent at all), andshaded pixels are semi-transparent (e.g., 50% transparent). FIG. 2 alsoshows five pixel runs, each representing a line of eight contiguouspixels. In other examples, pixel runs may instead or in addition besquares or rectangles of contiguous pixels. Additional pixel runs arenot shown in FIG. 2, for clarity of illustration. Pixel runs 205, 210,and 220 all include only pixels that share the transparent alpha channelvalue. Pixel run 215 includes only pixels that share an opaque alphachannel value. Pixel run 225 includes pixels with varied or differentrespective alpha channel values. As described above, pixel run 225 is alookup type pixel run. If transparent and opaque alpha channel valuesare in the set of common alpha channel values, then pixels runs 205,210, 215, and 220 are all common type pixel runs.

Although FIG. 2 represents the decompressed image representation 160, itonly differs, in terms of the illustrated alpha channel values, from theoriginal image representation 105 in the possible quantization of alphachannel values. That is, the illustrated pixel runs may operatesubstantially the same in creating the compressed image representation120 from the original image representation 105 as they do in creatingthe decompressed image representation 160 from the compressed imagerepresentation 120.

FIG. 3 illustrates an example of encoded alpha channel data 135. Asdescribed below, the example illustrated in FIG. 3 correlates to thedecompressed image representation 160 illustrated in FIG. 2.

The encoded alpha channel data 135 may include encoded alpha channeldata metadata 305, pixel run characteristic data 310, and pixel data315. In an example, the encoded alpha channel data 135 may include apalette 320.

The pixel run characteristic data 310 is shown with commas betweenindividual pixel run characteristic data 310; however, such delineationsmay not be used in practice. For example, if the various pixel runcharacteristic data 310 are encoded with a fixed number of bits, or forexample, with prefix codes (e.g., using Huffman or arithmetic coding),individual pixel runs may be determined without such delineations. Inthe illustrated example, a common type pixel run characteristic datum of‘0’ is associated with the common alpha channel value of transparent and‘10’ with opaque. The lookup type pixel run characteristic datum isrepresented by ‘11’. Thus, while reading the pixel run characteristicdata 310, when a ‘0’ is encountered, the next bit represents a new pixelrun. Further, a third bit represents a new pixel run when a ‘0’ is notencountered (e.g., in the case of ‘11’). In an example, a prefix codemay be used, such as ‘0’=transparent, ‘10’=opaque, and ‘110’=lookup. Inan example, a greater number of codes may be used to represent a greaternumber of common type pixel runs, thus reducing the use of the pixeldata 315. In an example, variable length codes may be chosen for commonalpha channel values such that shorter codes are associated with morecommonly occurring common alpha channel values. Statistical analysis maybe used to rank common alpha channel values by their likelihood ofoccurrence.

In an example, the encoded alpha channel data metadata 305 may include afield of the size (e.g., in bits, bytes, etc.) of the pixel runcharacteristic data 310. In an example, the pixel run characteristicdata 310 size field is four bytes. In an example, the encoded alphachannel data metadata 305 may include a field of the size (e.g., inbits, bytes, etc.) of the pixel data 315. In an example, the pixel data315 size field is four bytes. In an example, the encoded alpha channeldata metadata 305 may include a field of the size (e.g., in bits, bytes,etc.) of the palette 320. In an example, the palette 320 size field isfour bytes.

Thus, in this example, the first four pixel run characteristic data 310correlate to the pixel runs 205, 210, 215, and 220 illustrated in FIG.2. No other information is needed to recreate those pixel runs than theillustrated pixel run characteristics. The fifth pixel runcharacteristic datum 310, ‘00’, however, represents a lookup type pixelrun. Here, the pixel data 315 (again delineated with commas for clarityonly) may be used to determine the alpha channel values for pixels inthe pixel run 225 of FIG. 2. Each illustrated pixel datum is uniquelycorrelated (e.g., by its order in sequence) to a pixel in the pixel run225. The value of each pixel datum is an index (e.g., coordinate) to anentry of the palette 320. Upon reading a pixel datum, for example thefirst, the correlated alpha channel value, in this case ALPHA VALUE 4,may be retrieved (e.g., resolved, determined, etc.) and applied to thefirst pixel in the pixel run 225. This procedure may be repeated foreach of the remaining pixels of the pixel run 225 represented in thepixel data 315.

Elements described above may be used in any combination with additionalelements (e.g., components, systems, etc.) or not at all to perform theoperations of the method examples described below.

FIG. 4 illustrates a flowchart of an example of a method 400 to create acompressed image representation 120 from an original imagerepresentation 105.

At operation 405 a representation of a common type pixel run (e.g., thepixel run 205) may be generated in an encoded alpha channel data 135 ofa compressed image representation 120 from a set of contiguous commonalpha channel value pixels in an original image representation 105.Members of the set of common contiguous alpha channel value pixels mayshare a common alpha channel value in a set of common alpha channelvalues. The representation of the common type pixel run may include acommon type pixel run characteristic correlating to the common alphachannel value. In an example, the set of common alpha channel values mayconsist of opaque and transparent alpha channel values.

At operation 410 a representation of a lookup type pixel run may begenerated in the encoded alpha channel data 135 from a set of contiguouslookup alpha channel value pixels in the original image representation105 where at least one member of the set of contiguous lookup alphachannel value pixels has either an original alpha channel value that isdifferent than another member of the set of contiguous lookup alphachannel value pixels or not in the set of common alpha channel values.This is as described above with respect to FIG. 1.

At operation 415, for each pixel in the set of lookup alpha channelvalue pixel data 315 may be generated in the encoded alpha channel data135. In an example, the pixel data 315 may include an alpha channelvalue representation of an alpha channel value correlating to the pixel.

In an example, at least one of the common alpha channel value or thealpha channel value is quantized to respectively produce the common typepixel run characteristic or the alpha channel value representation.Quantization may occur as described above with respect to FIG. 1. In anexample, the alpha channel value representation may be an index to apalette 320 in the encoded alpha channel data 135. In an example, thepalette 320 may be generated by mapping original alpha channel valuesfrom the original image representation 105 to palette entries. In anexample, the number of palette entries may be fewer than the number ofpossible original alpha channel values. In an example, the number ofpalette entries may be fewer than the number of original alpha channelvalues (e.g., used in the original image representation 105), where thenumber of original alpha channel values are the set of unique alphachannel values of the pixels of the original image representation 105.

In an example, the encoded alpha channel data 135 may be compressedusing DEFLATE) to create compressed encoded alpha channel data 140.

In an example, the length of a pixel run represented in the encodedalpha channel data 135 may be uniform (e.g., the same) for every pixelrun represented in the encoded alpha channel data 135 including thecommon type pixel run and the lookup type pixel run. In an example, thelength of the pixel run may be selected from a plurality of lengthsbased on, for example, a greater degree of data reduction between theoriginal image representation 105 and the compressed imagerepresentation 120, as described above with respect to FIG. 1. In anexample, the length of the pixel run may be recorded in metadata of theencoded alpha channel data 305. In an example, as described above, thelength of variable pixel runs may be recorded throughout the encodedalpha channel data 135 such that it may be uniquely correlated to apixel run.

In an example, color data from the original image representation 105 maybe separated from alpha channel data in the original imagerepresentation 105.

In an example, encoded color data 130 may be generated in the compressedimage representation 120 by encoding the separated color data to createthe encoded color data 130. In an example, the encoded color data 130 isin a JPEG format.

FIG. 5 illustrates a flowchart of an example of a method 500 to create adecompressed image representation 160 from a compressed imagerepresentation 120.

At operation 505 extracting encoded alpha channel data 135 may beextracted from a compressed image representation 120. In an example,encoded color data 130 from the compressed image representation 120 maybe extracted. In an example, the color data (e.g., after extraction anddecoding) may be applied to the decompressed image representation 160.In an example, applying the color data to the decompressed imagerepresentation 160 may include passing the color data to an applicationenvironment facility 155 to decode and populate color information of thedecompressed image representation 160. In an example, encoded color data130 may be in a JPEG format. In an example, extracting encoded alphachannel data 135 may include decompressing compressed encoded alphachannel data 140 in the compressed image representation 120. In anexample, INFLATE is used to decompress the compressed encoded alphachannel data 140.

At operation 510 a common type pixel run characteristic may bedetermined for at least one common type pixel run represented in theencoded alpha channel data 135.

At operation 515 based the common type pixel run characteristic, acommon alpha channel value may be applied to pixels in a decompressedimage representation 160 correlating to the at least one common typepixel run.

At operation 520 pixels in the decompressed image representation 160correlating to at least one lookup type pixel run represented in theencoded alpha channel data 135 may be processed. Processing of theindividual pixels may include performing operations 525 and 530 untileach pixel in the decompressed image representation 160 correlated tothe lookup type pixel run has had an alpha channel value assigned.

At operation 525 for the current pixel (e.g., the pixel currently beingprocessed) an alpha channel value based on pixel data 315, specific tothe pixel, in the encoded alpha channel data 135 may be determined.

At operation 530 the determined alpha channel value may be applied tothe pixel. If there are additional pixels correlated to the lookup typepixel run, return to operation 525 to process the next pixel as thecurrent pixel. Otherwise end the individual pixel processing for thislookup type pixel run. Additional pixel runs may continue to beprocessed until there are no more pixel run representations in theencoded alpha channel data 135. In an example, determining the alphachannel value may include referencing a palette 320 with the pixel data315. In an example, the palette 320 may be in the encoded alpha channeldata 135.

In an example, a length of a pixel run represented in the encoded alphachannel data 135 may be uniform for every pixel run represented in theencoded alpha channel data 135 including the common type pixel run andthe lookup type pixel run. In an example, the length of the pixel runmay be extracted from encoded alpha channel data metadata 305 in theencoded alpha channel data 135.

An advantage of the above-described image compression method is thatbenefits of using alpha channel data are provided while achievingsignificant compression to, for example, reduce network bandwidth,reduce latency in transmitted the image, and reduce storage spacerequired to store the image representation. The resultant compressedimage representation 120 therefore includes alpha channel data which isnot included in some popular image compression systems, such as, forexample, the Joint Photographic Experts Group (JPEG) formats, whileproviding superior compression to popular compression systems thatsupport alpha channels, such as, e.g., Portal Network Graphics (PNG)formats.

Embodiments may operate in a wide area network environment, such as theInternet, including multiple network addressable systems. FIG. 6illustrates an example network environment 600 in which various exampleembodiments may operate. The network environment 600 may include anetwork cloud 660 that generally represents one or more interconnectednetworks, over which the systems and hosts described herein maycommunicate. The network cloud 660 may include packet-based wide areanetworks (such as the Internet), private networks, wireless networks,satellite networks, cellular networks, paging networks, and the like. AsFIG. 6 illustrates, particular embodiments may operate in the networkenvironment 600 comprising one or more networking systems, such as asocial networking system 620 a, a game networking system 620 b, and oneor more client systems 630. The components of the social networkingsystem 620 a and the game networking system 620 b operate analogously;as such, hereinafter they may be referred to simply as the networkingsystem 620. The client systems 630 are operably connected to the networkenvironment 600 via a network service provider, a wireless carrier, orany other suitable means.

The networking system 620 is a network addressable system that, invarious example embodiments, comprises one or more physical servers 622and data stores 624. The one or more physical servers 622 are operablyconnected to network cloud 660 via, by way of example, a set of routersand/or networking switches 626. In an example embodiment, thefunctionality hosted by the one or more physical servers 622 may includeweb or HTTP servers, FTP servers, as well as, without limitation, webpages and applications implemented using Common Gateway Interface (CGI)script, PHP Hyper-text Preprocessor (PHP), Active Server Pages (ASP),HyperText Markup Language (HTML), Extensible Markup Language (XML),Java, JavaScript, Asynchronous JavaScript and XML (AJAX), Flash,ActionScript, and the like.

The network environment 600 may include physical servers 622 that mayhost functionality directed to the operations of the networking system620. Hereinafter the servers 622 may be referred to as the server 622,although the server 622 may include numerous servers hosting, forexample, the networking system 620, as well as other contentdistribution servers, data stores 624, and databases. The networkenvironment 600 may also include a data store 624 that may store contentand data relating to, and enabling, operation of the networking system620 as digital data objects. A data object, in particular embodiments,is an item of digital information typically stored or embodied in a datafile, database, or record. Content objects may take many forms,including: text (e.g., ASCII, SGML, HTML), images (e.g., jpeg, tif andgif), graphics (vector-based or bitmap), audio, video (e.g., mpeg), orother multimedia, and combinations thereof. Content object data may alsoinclude executable code objects (e.g., games executable within a browserwindow or frame), podcasts, etc. Logically, the data store 624corresponds to one or more of a variety of separate and integrateddatabases, such as relational databases and object-oriented databases,that maintain information as an integrated collection of logicallyrelated records or files stored on one or more physical systems.Structurally, data store 624 may generally include one or more of alarge class of data storage and management systems. In particularembodiments, the data store 624 may be implemented any suitable physicalsystem(s) including components such as one or more database servers,mass storage media, media library systems, storage area networks, datastorage clouds, and the like. In one example embodiment, data store 624includes one or more servers 622, databases MySQL), and/or datawarehouses. The data store 624 may include data associated withdifferent networking system 620 users and/or client systems 630.

The client system 630 is generally a computer or computing deviceincluding functionality for communicating (e.g., remotely) over acomputer network 622. The client system 630 may be a desktop computer,laptop computer, personal digital assistant (PDA), in or out-of-carnavigation system, smart phone or other cellular or mobile phone, ormobile gaming device, among other suitable computing devices. The clientsystem 630 may execute one or more client applications, such as a webbrowser (e.g., Microsoft Internet Explorer, Mozilla Firefox, AppleSafari, Google Chrome, and Opera), to access and view content over acomputer network 622. In particular embodiments, the client applicationsallow a user of the client system 630 to enter addresses of specificnetwork resources to be retrieved, such as resources hosted by thenetworking system 620. These addresses may be URLs and the like. Inaddition, once a page or other resource has been retrieved, the clientapplications may provide access to other pages or records when the user“clicks” on hyperlinks to other resources. By way of example, suchhyperlinks may be located within the web pages and provide an automatedway for the user to enter the URL of another page and to retrieve thatpage.

A web page or resource embedded within a web page, which may itselfinclude multiple embedded resources, may include data records, such asplain textual information, or more complex digitally-encoded multimediacontent, such as software programs or other code objects, graphics,images, audio signals, videos, and so forth. One prevalent markuplanguage for creating web pages is the HyperText Markup Language (HTML).Other common web browser-supported languages and technologies includethe Extensible Markup Language (XML), the Extensible Hypertext MarkupLanguage (XHTML), JavaScript, Flash, ActionScript, Cascading StyleSheets (CSS), and, frequently, Java. By way of example, HTML enables apage developer to create a structured document by denoting structuralsemantics for text and links, as well as images, web applications, andother objects that may be embedded within the page. Generally, a webpage may be delivered to a client as a static document; however, throughthe use of web elements embedded in the page, an interactive experiencemay be achieved with the page or a sequence of pages. During a usersession at the client, the web browser interprets and displays the pagesand associated resources received or retrieved from the website hostingthe page, as well as, potentially, resources from other websites.

When a user at the client system 630 desires to view a particular webpage (hereinafter also referred to as target structured document) hostedby the networking system 620, the user's web browser, or other documentrendering engine or suitable client application, formulates andtransmits a request to the networking system 620. The request generallyincludes a URL or other document identifier as well as metadata or otherinformation. By way of example, the request may include informationidentifying the user, such as a user ID, as well as informationidentifying or characterizing the web browser or operating systemrunning on the user's client system 630. The request may also includelocation information identifying a geographic location of the user'sclient system 630 or a logical network location of the user's clientsystem 630. The request may also include a timestamp identifying whenthe request was transmitted.

Although the example network environment 600 described above andillustrated in FIG. 6 is described with respect to the social networkingsystem 620 a and the game networking system 620 b, this disclosureencompasses any suitable network environment using any suitable systems.As an example and not by way of limitation, the network environment 600may include online media systems, online reviewing systems, onlinesearch engines, online advertising systems, or any combination of two ormore such systems.

FIG. 7 illustrates an example computing system architecture, which maybe used to implement the server 622 or the client system 630. In oneembodiment, a hardware system 700 comprises a processor 702, a cachememory 704, and one or more executable modules and drivers, stored on atangible computer-readable medium, directed to the functions describedherein. Additionally, hardware system 700 may include a high performanceinput/output (I/O) bus 706 and a standard I/O bus 708. A host bridge 710may couple the processor 702 to a high performance I/O bus 706, whereasan I/O bus bridge 712 couples the two buses 706 and 708 to each other. Asystem memory 714 and one or more network/communication interfaces 716may couple to the bus 706. The hardware system 700 may further includevideo memory (not shown) and a display device coupled to the videomemory. Amass storage 715 and I/O ports 720 may couple to the bus 708.The hardware system 700 may optionally include a keyboard, a pointingdevice, and a display device (not shown) coupled to the bus 708.Collectively, these elements are intended to represent a broad categoryof computer hardware systems, including but not limited to generalpurpose computer systems based on the x86-compatible processorsmanufactured by Intel Corporation of Santa Clara, Calif., and thex86-compatible processors manufactured by Advanced Micro Devices (AMD),Inc., of Sunnyvale, Calif., as well as any other suitable processor.

The elements of hardware system 700 are described in greater detailbelow. In particular, the network interface 716 provides communicationbetween the hardware system 700 and any of a wide range of networks,such as an Ethernet (e.g., IEEE 802.3) network, a backplane, etc. Themass storage 718 provides permanent storage for the data and programminginstructions to perform the above-described functions implemented in theservers 622 of FIG. 6, whereas the system memory 714 (e.g., DRAM)provides temporary storage for the data and programming instructionswhen executed by the processor 702. The I/O ports 720 are one or moreserial and/or parallel communication ports that provide communicationbetween additional peripheral devices which may be coupled to thehardware system 700.

The hardware system 700 may include a variety of system architectures,and various components of the hardware system 700 may be rearranged. Forexample, the cache memory 704 may be on-chip with the processor 702.Alternatively, the cache memory 704 and the processor 702 may be packedtogether as a “processor module,” with the processor 702 being referredto as the “processor core,” Furthermore, certain embodiments of thepresent disclosure may not include all of the above components. Forexample, the peripheral devices shown coupled to the standard I/O bus708 may couple to the high performance I/O bus 706. In addition, in someembodiments, only a single bus may exist, with the components of thehardware system 700 being coupled to the single bus. Furthermore, thehardware system 700 may include additional components, such asadditional processors, storage devices, or memories.

An operating system manages and controls the operation of the hardwaresystem 700, including the input and output of data to and from softwareapplications (not shown). The operating system provides an interfacebetween the software applications being executed on the hardware system700 and the hardware components of the hardware system 700. Any suitableoperating system may be used, such as the LINUX Operating System, theApple Macintosh Operating System, available from Apple Computer Inc. ofCupertino, Calif., UNIX operating systems, Microsoft® Windows® operatingsystems, BSD operating systems, and the like. Of course, otherembodiments are possible. For example, the functions described hereinmay be implemented in firmware or on an application-specific integratedcircuit.

Furthermore, the above-described elements and operations may becomprised of instructions that are stored on non-transitory storagemedia. The instructions may be retrieved and executed by a processingsystem. Some examples of instructions are software, program code, andfirmware. Some examples of non-transitory storage media are memorydevices, tape, disks, integrated circuits, and servers. The instructionsare operational when executed by the processing system to direct theprocessing system to operate in accord with the disclosure. The term“processing system” refers to a single processing device or a group ofinter-operational processing devices. Some examples of processingdevices are integrated circuits and logic circuitry. Those skilled inthe art are familiar with instructions, computers, and storage media.

Modules, Components, and Logic

Certain embodiments are described herein as including logic or a numberof components, modules, or mechanisms. Modules may constitute eithersoftware modules (e.g., code embodied (1) on a non-transitorymachine-readable medium or (2) in a transmission signal) orhardware-implemented modules. A hardware-implemented module is atangible unit capable of performing certain operations and may beconfigured or arranged in a certain manner. In example embodiments, oneor more computer systems (e.g., a standalone, client or server computersystem) or one or more processors may be configured by software (e.g.,an application or application portion) as a hardware-implemented modulethat operates to perform certain operations as described herein.

In various embodiments, a hardware-implemented module may be implementedmechanically or electronically. For example, a hardware-implementedmodule may comprise dedicated circuitry or logic that is permanentlyconfigured (e.g., as a special-purpose processor, such as a fieldprogrammable gate array (FPGA) or an application-specific integratedcircuit (ASIC)) to perform certain operations. A hardware-implementedmodule may also comprise programmable logic or circuitry (e.g., asencompassed within a general-purpose processor or other programmableprocessor) that is temporarily configured by software to perform certainoperations. It will be appreciated that the decision to implement ahardware-implemented module mechanically, in dedicated and permanentlyconfigured circuitry, or in temporarily configured circuitry (e.g.,configured by software) may be driven by cost and time considerations.

Accordingly, the term “hardware-implemented module” should be understoodto encompass a tangible entity, be that an entity that is physicallyconstructed, permanently configured (e.g., hardwired) or temporarily ortransitorily configured (e.g., programmed) to operate in a certainmanner and/or to perform certain operations described herein.Considering embodiments in which hardware-implemented modules aretemporarily configured (e.g., programmed), each of thehardware-implemented modules need not be configured or instantiated atany one instance in time. For example, where the hardware-implementedmodules comprise a general-purpose processor configured using software,the general-purpose processor may be configured as respective differenthardware-implemented modules at different times. Software mayaccordingly configure a processor, for example, to constitute aparticular hardware-implemented module at one instance of time and toconstitute a different hardware-implemented module at a differentinstance of time.

Hardware-implemented modules may provide information to, and receiveinformation from, other hardware-implemented modules. Accordingly, thedescribed hardware-implemented modules may be regarded as beingcommunicatively coupled. Where multiple of such hardware-implementedmodules exist contemporaneously, communications may be achieved throughsignal transmission (e.g., over appropriate circuits and buses thatconnect the hardware-implemented modules). In embodiments in whichmultiple hardware-implemented modules are configured or instantiated atdifferent times, communications between such hardware-implementedmodules may be achieved, for example, through the storage and retrievalof information in memory structures to which the multiplehardware-implemented modules have access. For example, onehardware-implemented module may perform an operation, and store theoutput of that operation in a memory device to which it iscommunicatively coupled. A further hardware-implemented module may then,at a later time, access the memory device to retrieve and process thestored output. Hardware-implemented modules may also initiatecommunications with input or output devices, and may operate on aresource a collection of information).

The various operations of example methods described herein may beperformed, at least partially, by one or more processors that aretemporarily configured (e.g., by software) or permanently configured toperform the relevant operations. Whether temporarily or permanentlyconfigured, such processors may constitute processor-implemented modulesthat operate to perform one or more operations or functions. The modulesreferred to herein may, in some example embodiments, compriseprocessor-implemented modules.

Similarly, the methods described herein may be at least partiallyprocessor-implemented. For example, at least some of the operations of amethod may be performed by one or processors or processor-implementedmodules. The performance of certain of the operations may be distributedamong the one or more processors, not only residing within a singlemachine, but deployed across a number of machines. In some exampleembodiments, the processor or processors may be located in a singlelocation (e.g., within a home environment, an office environment or as aserver farm), while in other embodiments the processors may bedistributed across a number of locations.

The one or more processors may also operate to support performance ofthe relevant operations in a “cloud computing” environment or as a“software as a service” (SaaS). For example, at least some of theoperations may be performed by a group of computers (as examples ofmachines including processors), with these operations being accessiblevia a network (e.g., the Internet) and via one or more appropriateinterfaces (e.g., Application Programming Interfaces (APIs).)

One or more features from any embodiment may be combined with one ormore features of any other embodiment without departing from the scopeof the disclosure. For example, the methods, game features and gamemechanics described herein may be implemented using hardware components,software components, and/or any combination thereof. By way of example,while embodiments of the present disclosure have been described asoperating in connection with a networking website, various embodimentsof the present disclosure may be used in connection with anycommunications facility that supports web applications. Furthermore, insome embodiments the term “web service” and “website” may be usedinterchangeably, and additionally may refer to a custom or generalizedAPI on a device, such as a mobile device (e.g., cellular phone, smartphone, personal GPS, personal digital assistance, personal gamingdevice, etc.), that makes API calls directly to a server. Thespecification and drawings are, accordingly, to be regarded in anillustrative rather than a restrictive sense.

What is claimed is:
 1. A method comprising: extracting, using ahardware-implemented decoding module, encoded alpha channel data from acompressed image representation; identifying at least one common typepixel run represented in the encoded alpha channel data; identifying atleast one lookup type pixel run in the encoded alpha channel data;applying a common alpha channel value to each of a plurality of pixelsin a decompressed image representation correlating to the at least onecommon type pixel run; and for each pixel in the decompressed imagerepresentation correlating to the at least one lookup type pixel run:determining an alpha channel value based on pixel data, specific to thepixel, in the encoded alpha channel data; and applying the alpha channelvalue to the pixel.
 2. The method of claim 1, comprising: extractingencoded color data from the compressed image representation, the encodedcolor data being separate from the encoded alpha channel data in thecompressed image representation; and applying the color data to thedecompressed image representation.
 3. The method of claim 2, wherein theencoded color data is in a PEG format.
 4. The method of claim 2, whereinapplying the color data to the decompressed image representationincludes passing the color data to an application environment facilityto decode and populate color information of the decompressed imagerepresentation.
 5. The method of claim 1, wherein extracting encodedalpha channel data includes decompressing compressed encoded alphachannel data in the compressed image representation.
 6. The method ofclaim 1, wherein the encoded alpha channel data comprises a plurality ofpixel runs, including the at least one common type pixel run and the atleast one lookup type pixel run, the plurality of pixel runs being ofuniform pixel length.
 7. The method of claim 1, comprising extracting apixel length of the at least one common type pixel run from metadata inthe encoded alpha channel data.
 8. The method of claim 1, whereindetermining the alpha channel value includes referencing a palette withthe pixel data, the palette being in the encoded alpha channel data. 9.The method of claim 1, further comprising determining a common typepixel run characteristic for the at least one common type pixel run,applying the common alpha channel value to each of the plurality ofpixels correlating to the at least one common type pixel run being basedat least in part on the common pixel run characteristic.
 10. A methodcomprising: generating, using a hardware-implemented encoding module, arepresentation of a common type pixel run in an encoded alpha channel ofa compressed image representation from a set of contiguous common alphachannel value pixels in an original image representation, members of theset of common contiguous alpha channel value pixels sharing a commonalpha channel value in a set of common alpha channel values, therepresentation of the common type pixel run including a common typepixel run characteristic correlating to the common alpha channel value;generating a representation of a lookup type pixel run in encoded alphachannel data from a set of contiguous lookup alpha channel value pixelsin the original image representation, at least one member of the set ofcontiguous lookup alpha channel value pixels having at least one of anoriginal alpha channel value that is different than another member ofthe set of contiguous lookup alpha channel value pixels or not in theset of common alpha channel values; and generating, for each pixel inthe set of lookup alpha channel value pixels, pixel data in the encodedalpha channel data, the pixel data including an alpha channel valuerepresentation of an alpha channel value correlating to the pixel. 11.The method of claim 10, wherein at least one of the common alpha channelvalue or the alpha channel value is quantized to respectively producethe common type pixel run characteristic or the alpha channel valuerepresentation.
 12. The method of claim 11, wherein the alpha channelvalue representation is an index to a palette in the encoded alphachannel data.
 13. The method of claim 12, comprising generating thepalette by mapping original alpha channel values from the original imagerepresentation to palette entries, a number of palette entries beingfewer than a number of possible original alpha channel values.
 14. Themethod of claim 13, wherein the number of palette entries is fewer thana number of original alpha channel values, the number of original alphachannel values being a set of unique alpha channel values of the pixelsof the original image representation.
 15. The method of claim 10,comprising compressing the encoded alpha channel data to createcompressed encoded alpha channel data.
 16. The method of claim 10,wherein a length of a pixel run represented in the encoded alpha channeldata is uniform for every pixel run represented in the encoded alphachannel data, including the common type pixel run and the lookup typepixel run.
 17. The method of claim 16, comprising selecting the lengthof the pixel run from a plurality of lengths based on a greater degreeof data reduction between the original image representation and thecompressed image representation.
 18. The method of claim 16, comprisingrecording the length of the pixel run in metadata of the encoded alphachannel data.
 19. The method of claim 10, wherein the set of commonalpha channel values has fever members than a number of possibleoriginal alpha channel values from the original image representation.20. The method of claim 19, wherein the set of common alpha channelvalues consists of opaque and transparent.
 21. The method of claim 10,comprising: separating color data from the original image representationfrom alpha channel data in the original image representation; andgenerating encoded color data in the compressed image representation byencoding the color data to create encoded color data.
 22. The method ofclaim 21, wherein the encoded color data is in a JPEG format.
 23. Anon-transitory computer-readable medium including a data structurecomprising: encoded alpha channel data, the encoded alpha channel dataincluding: a representation of a common type pixel run including acommon type pixel run characteristic; a representation of a lookup typepixel run; and pixel data for each pixel represented by the lookup typepixel run, the pixel data including a representation of an alpha channelvalue.
 24. The computer-readable medium of claim 23, wherein a structurecomprises encoded color data.
 25. The computer-readable medium of claim23, wherein the encoded alpha channel data includes a palette; andwherein at least one of the common type pixel run characteristic or therepresentation of the alpha channel value include an index to an entryof the palette.
 26. The computer-readable medium of claim 23, wherein alength of a pixel run represented in the encoded alpha channel data isuniform for every pixel run represented in the encoded alpha channeldata including the common type pixel run and the lookup type pixel run.27. The computer-readable medium of claim 26, wherein the encoded alphachannel data includes metadata including a length of the pixel run. 28.A system comprising: a hardware-implemented decoding module configuredto: extract encoded alpha channel data from a compressed imagerepresentation; determine, for at least one common type pixel runrepresented in the encoded alpha channel data, a common type pixel runcharacteristic; apply, based on the common type pixel runcharacteristic, a common alpha channel value to pixels in a decompressedimage representation correlated to the at least one common type pixelrun; and process pixels in the decompressed image representationcorrelated to at least one lookup type pixel run represented in theencoded alpha channel data, the process configured to, for each pixel inthe decompressed image representation correlated to the at least onelookup type pixel run: determine an alpha channel value based on pixeldata, specific to the pixel, in the encoded alpha channel data; andapply the alpha channel value to the pixel.
 29. The system of claim 28,wherein the decoding module is configured to: extract encoded color datafrom the compressed image representation, the encoded color data beingseparate from the encoded alpha channel data in the compressed imagerepresentation; and apply the color data to the decompressed imagerepresentation.
 30. The system of claim 29, wherein the encoded colordata is in a PEG format.
 31. The system of claim 29, wherein to applythe color data to the decompressed image representation includes to passthe color data to an application environment facility to decode andpopulate color information of the decompressed image representation. 32.The system of claim 28, comprising a decompression module configured todecompress compressed encoded alpha channel data in the compressed imagerepresentation.
 33. The system of claim 28, wherein a length of a pixelrun represented in the encoded alpha channel data is uniform for everypixel run represented in the encoded alpha channel data including thecommon type pixel run and the lookup type pixel run.
 34. The system ofclaim 28, wherein the decoding module is configured to extract a lengthof a pixel run from metadata in the encoded alpha channel data.
 35. Thesystem of claim 28, wherein to determine the alpha channel valueincludes to reference a palette with the pixel data, the palette beingin the encoded alpha channel data.
 36. A system comprising: ahardware-implemented encoding module configured to: generate arepresentation of a common type pixel run in an encoded alpha channel ofa compressed image representation from a set of contiguous common alphachannel value pixels in an original image representation, members of theset of common contiguous alpha channel value pixels sharing a commonalpha channel value in a set of common alpha channel values, therepresentation of the common type pixel run including a common typepixel run characteristic correlating to the common alpha channel value;generate a representation of a lookup type pixel run in encoded alphachannel data from a set of contiguous lookup alpha channel value pixelsin the original image representation, at least one member of the set ofcontiguous lookup alpha channel value pixels having at least one of anoriginal alpha channel value that is different than another member ofthe set of contiguous lookup alpha channel value pixels or not in theset of common alpha channel values; and generate, for each pixel in theset of lookup alpha channel value pixels, pixel data in the encodedalpha channel data, the pixel data including an alpha channel valuerepresentation of an alpha channel value correlating to the pixel. 37.The system of claim 36, wherein the encoding module is configured toquantize at least one of the common alpha channel value or the alphachannel value to respectively produce the common type pixel runcharacteristic or the alpha channel value representation.
 38. The systemof claim 37, wherein the alpha channel value representation is an indexto a palette in the encoded alpha channel data.
 39. The system of claim38, wherein the encoding module is configured to generate the palateincluding to map original alpha channel values from the original imagerepresentation to palette entries, a number of palette entries beingfewer than a number of possible original alpha channel values.
 40. Thesystem of claim 39, wherein the number of palette entries is fewer thana number of original alpha channel values, a number of original alphachannel values being a set of unique alpha channel values of the pixelsof the original image representation.
 41. The system of claim 36,comprising a compression module configured to compress encoded alphachannel data to create compressed encoded alpha channel data.
 42. Thesystem of claim 36, wherein a length of a pixel run represented in theencoded alpha channel data is uniform for every pixel run represented inthe encoded alpha channel data including the common type pixel run andthe lookup type pixel run.
 43. The system of claim 42, wherein theencoding module is configured to select the length of the pixel run froma plurality of lengths based on a greater degree of data reductionbetween the original image representation and the compressed imagerepresentation.
 44. The system of claim 42, wherein the encoding moduleis configured to record the length of the pixel run in metadata of theencoded alpha channel data.
 45. The system of claim 36, wherein the setof common alpha channel values has fewer members than a number ofpossible original alpha channel values from the original imagerepresentation.
 46. The system of claim 45, wherein the set of commonalpha channel values consists of opaque and transparent.
 47. The systemof claim 36, wherein the encoding module is configured to: separatecolor data from the original image representation from alpha channeldata in the original image representation; and generate encoded colordata in the compressed image representation including to encode thecolor data to create encoded color data.
 48. The system of claim 47,wherein the encoded color data is in a JPEG format.